package com.ruoyi.system.service.impl;

import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.DispatchDailyStatisticsResultsMapper;
import com.ruoyi.system.domain.DispatchDailyStatisticsResults;
import com.ruoyi.system.service.IDispatchDailyStatisticsResultsService;

/**
 * 每日统计结果Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class DispatchDailyStatisticsResultsServiceImpl implements IDispatchDailyStatisticsResultsService 
{
    @Autowired
    private DispatchDailyStatisticsResultsMapper dispatchDailyStatisticsResultsMapper;

    /**
     * 查询每日统计结果
     * 
     * @param dailyStatisticsResultsId 每日统计结果主键
     * @return 每日统计结果
     */
    @Override
    public DispatchDailyStatisticsResults selectDispatchDailyStatisticsResultsByDailyStatisticsResultsId(Long dailyStatisticsResultsId)
    {
        return dispatchDailyStatisticsResultsMapper.selectDispatchDailyStatisticsResultsByDailyStatisticsResultsId(dailyStatisticsResultsId);
    }

    /**
     * 查询每日统计结果列表
     * 
     * @param dispatchDailyStatisticsResults 每日统计结果
     * @return 每日统计结果
     */
    @Override
    public List<DispatchDailyStatisticsResults> selectDispatchDailyStatisticsResultsList(DispatchDailyStatisticsResults dispatchDailyStatisticsResults)
    {
        return dispatchDailyStatisticsResultsMapper.selectDispatchDailyStatisticsResultsList(dispatchDailyStatisticsResults);
    }

    /**
     * 新增每日统计结果
     * 
     * @param dispatchDailyStatisticsResults 每日统计结果
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertDispatchDailyStatisticsResults(DispatchDailyStatisticsResults dispatchDailyStatisticsResults)
    {
        return dispatchDailyStatisticsResultsMapper.insertDispatchDailyStatisticsResults(dispatchDailyStatisticsResults);
    }

    /**
     * 修改每日统计结果
     * 
     * @param dispatchDailyStatisticsResults 每日统计结果
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateDispatchDailyStatisticsResults(DispatchDailyStatisticsResults dispatchDailyStatisticsResults)
    {return dispatchDailyStatisticsResultsMapper.updateDispatchDailyStatisticsResults(dispatchDailyStatisticsResults);
    }

    /**
     * 批量删除每日统计结果
     * 
     * @param dailyStatisticsResultsIds 需要删除的每日统计结果主键
     * @return 结果
     */
    @Override
    public int deleteDispatchDailyStatisticsResultsByDailyStatisticsResultsIds(Long[] dailyStatisticsResultsIds)
    {
        return dispatchDailyStatisticsResultsMapper.deleteDispatchDailyStatisticsResultsByDailyStatisticsResultsIds(dailyStatisticsResultsIds);
    }

    /**
     * 删除每日统计结果信息
     * 
     * @param dailyStatisticsResultsId 每日统计结果主键
     * @return 结果
     */
    @Override
    public int deleteDispatchDailyStatisticsResultsByDailyStatisticsResultsId(Long dailyStatisticsResultsId)
    {
        return dispatchDailyStatisticsResultsMapper.deleteDispatchDailyStatisticsResultsByDailyStatisticsResultsId(dailyStatisticsResultsId);
    }
}
